home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / lpd / compatInt.h < prev    next >
C/C++ Source or Header  |  1989-08-15  |  2KB  |  53 lines

  1. /*
  2.  * compatInt.h --
  3.  *
  4.  *    Declarations of routines used to implement Unix system calls
  5.  *    in terms of Sprite ones.  When Sprite gets converted to
  6.  *    implement the Unix system calls directly, this file should
  7.  *    go away.
  8.  *
  9.  * Copyright 1986, 1988 Regents of the University of California
  10.  * Permission to use, copy, modify, and distribute this
  11.  * software and its documentation for any purpose and without
  12.  * fee is hereby granted, provided that the above copyright
  13.  * notice appear in all copies.  The University of California
  14.  * makes no representations about the suitability of this
  15.  * software for any purpose.  It is provided "as is" without
  16.  * express or implied warranty.
  17.  *
  18.  * $Compat: proto.h,v 1.3 86/02/14 09:47:40 ouster Exp $ SPRITE (Berkeley)
  19.  */
  20.  
  21. #ifndef _COMPATINT
  22. #define _COMPATINT
  23.  
  24. #include "sprite.h"
  25.  
  26. /*
  27.  * UNIX_ERROR is the value Unix system calls return upon error.
  28.  * UNIX_SUCCESS is the value Unix system calls return if they don't
  29.  * return anything interesting and there has been no error.
  30.  */
  31.  
  32. #define UNIX_ERROR -1
  33. #define UNIX_SUCCESS 0
  34.  
  35. /*
  36.  * Unix error code is stored in external variable errno.
  37.  */
  38.  
  39. extern int errno;
  40.  
  41. /*
  42.  * Define a few routines to map Sprite constants to Unix and vice-versa.
  43.  */
  44.  
  45. extern ReturnStatus Compat_MapCode();
  46. extern ReturnStatus Compat_UnixSignalToSprite();
  47. extern ReturnStatus Compat_SpriteSignalToUnix();
  48. extern ReturnStatus Compat_UnixSigMaskToSprite();
  49. extern ReturnStatus Compat_SpriteSigMaskToUnix();
  50. extern ReturnStatus Compat_GetSigMask();
  51.  
  52. #endif _COMPATINT
  53.